GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — rewrite-laravel ( 753166...70b4f0 )
by Oliver
05:06
created

bootstrap.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
2
window._ = require('lodash');
3
4
/**
5
 * We'll load jQuery and the Bootstrap jQuery plugin which provides support
6
 * for JavaScript based Bootstrap features such as modals and tabs. This
7
 * code may be modified to fit the specific needs of your application.
8
 */
9
10
try {
11
    window.$ = window.jQuery = require('jquery');
12
13
    require('bootstrap-sass');
14
} catch (e) {}
0 ignored issues
show
Coding Style Comprehensibility Best Practice introduced by
Empty catch clauses should be used with caution; consider adding a comment why this is needed.
Loading history...
15
16
/**
17
 * We'll load the axios HTTP library which allows us to easily issue requests
18
 * to our Laravel back-end. This library automatically handles sending the
19
 * CSRF token as a header based on the value of the "XSRF" token cookie.
20
 */
21
22
window.axios = require('axios');
23
24
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
25
26
/**
27
 * Next we will register the CSRF Token as a common header with Axios so that
28
 * all outgoing HTTP requests automatically have it attached. This is just
29
 * a simple convenience so we don't have to attach every token manually.
30
 */
31
32
let token = document.head.querySelector('meta[name="csrf-token"]');
33
34
if (token) {
35
    window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
36
} else {
37
    console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
38
}
39
40
/**
41
 * Echo exposes an expressive API for subscribing to channels and listening
42
 * for events that are broadcast by Laravel. Echo and event broadcasting
43
 * allows your team to easily build robust real-time web applications.
44
 */
45
46
// import Echo from 'laravel-echo'
47
48
// window.Pusher = require('pusher-js');
49
50
// window.Echo = new Echo({
51
//     broadcaster: 'pusher',
52
//     key: 'your-pusher-key'
53
// });